import { ecs } from "db://app-game/libs/ecs/ECS";
import { Account } from "../../../ecs/account/Account";
import { Home } from "../../../scene/home/Home";
import { Initialize } from "../../../scene/initialize/Initialize";
import { Level } from "../../../scene/level/Level";

@ecs.register("SingletonModule")
export class SingletonModuleComp extends ecs.Comp {
  /** 游戏初始化模块 */
  initialize: Initialize = null!;
  /** 游戏账号模块 */
  get account(): Account {
    return this.initialize.account;
  }

  /** 首页 */
  home!: Home;

  /* 关卡模块 */
  level!: Level;

  reset() {}
}

export let smc: SingletonModuleComp = ecs.getSingleton(SingletonModuleComp);
